<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
	if (user != null) {
%>

<jsp:forward page="/fundedu/homepage.jsp" />

<%
	} else {
%>

<div>
   <br> <br> <br> <br>
   <table align="center" valign="center">
   <tr><td>
      <img width="200" height="70" src="/fundedu/images/fundEdu_logo2.jpg" alt="#" />
   </td></tr>
   </table>
</div>

<form name="login" action="/fundedu/home" method="post">
	<br> <br> 
	<table align="center" width="30%" border="0"
		style="background-image: url(/fundedu/images/background.png); background-repeat: x" />
	<tr></tr>

	<tr></tr>
	<tr></tr>
	<tr>
		<td align="center">Welcome to FundEdu! Use Google ID(gmail) to continue.</td>
	</tr>
	<tr>
		<th><a
			href="<%=userService.createLoginURL(request.getRequestURI())%>">Sign
				in</a></th>
	</tr>

	</table>

</form>
<%
	}
%>